.welcome-card-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;

  &.visible {
    opacity: 1;
    visibility: visible;
  }
}

/* 背景星空 */
.star-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.star {
  position: absolute;
  background: radial-gradient(circle, #fff 0%, #ffd700 50%, transparent 100%);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;

  &.animate {
    animation: twinkle 2s ease-in-out infinite;
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* 主卡片 */
.welcome-card {
  position: relative;
  width: 320px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  transform: scale(0.8);
  transition: all 0.5s ease;

  &.expanded {
    transform: scale(0.6) translateY(-50px);
  }
}

/* 卡片背景 */
.card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gradient-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 20px;
}

.glow-border {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00d4ff, #ff6b6b, #4ecdc4, #45b7d1);
  border-radius: 22px;
  z-index: -1;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* 卡片内容 */
.card-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

/* 顶部区域 */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.welcome-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.welcome-title {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

.star-icon {
  font-size: 20px;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 编号星点 */
.number-stars {
  position: relative;
  width: 80px;
  height: 40px;
}

.number-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  box-shadow: 0 0 6px #ffd700;
  animation: numberStarAppear 0.5s ease-out forwards;
}

@keyframes numberStarAppear {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 中间区域 */
.card-middle {
  text-align: center;
}

.title-section {
  margin-bottom: 20px;
}

.user-title {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  margin-bottom: 10px;
  opacity: 0.7;
  transition: all 0.8s ease;

  &.light-up {
    opacity: 1;
    text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700;
    animation: titleGlow 2s ease-in-out infinite;
  }
}

/* 用户编号 */
.user-number {
  margin-bottom: 15px;
  animation: fadeInUp 0.8s ease-out 1s both;
}

.number-text {
  font-size: 16px;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  font-weight: 500;
}

/* 欢迎诗句 */
.welcome-poem {
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 1.2s both;
}

.poem-text {
  font-size: 14px;
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  line-height: 1.6;
  opacity: 0.9;
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700;
  }
  50% {
    text-shadow: 0 0 30px #ffd700, 0 0 40px #ffd700, 0 0 50px #ffd700;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.title-star {
  width: 6px;
  height: 6px;
  background: #ffd700;
  border-radius: 50%;
  box-shadow: 0 0 8px #ffd700;
  animation: titleStarTwinkle 1.5s ease-in-out infinite;
}

.title-star:nth-child(1) { animation-delay: 0s; }
.title-star:nth-child(2) { animation-delay: 0.3s; }
.title-star:nth-child(3) { animation-delay: 0.6s; }
.title-star:nth-child(4) { animation-delay: 0.9s; }
.title-star:nth-child(5) { animation-delay: 1.2s; }

@keyframes titleStarTwinkle {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.welcome-message {
  margin-top: 20px;
}

.message-text {
  font-size: 18px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

/* 底部区域 */
.card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.click-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  animation: fadeInUp 0.8s ease-out 1.5s both;
}

.hint-text {
  font-size: 14px;
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.hint-arrow {
  font-size: 16px;
  color: #ffd700;
  animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}
